  import { useUserStore } from "../../store/user";
  import { ref, computed, onMounted } from "vue";

  const userInfo = ref()
  export const getMyUserInfo = async() =>{
    const userStore = useUserStore()
    await userStore.getUserInfo()
    userInfo.value = computed((): any => userStore.userInfo)
    console.log(userInfo.value.value)

    return userInfo.value.value
  }

//   onMounted(()=>{
//     getMyUserInfo()
//   })